package com.lzx.activity.service;

import com.lzx.activity.entity.Activity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.activity.entity.vo.ActivityOSSParams;
import com.lzx.activity.entity.vo.ActivityParams;
import com.lzx.common.utils.R;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lzx
 * @since 2022-10-31
 */
public interface ActivityService extends IService<Activity> {

    //获取活动列表
    R getActivityList(int current, int size);

    //新增活动
    R addActivity(Activity activity);

    //修改活动
    R updateActivity(Activity activity);

    //删除活动
    R deleteActivity(List<Long> ids);

    //根据id获取活动信息
    R getActivity(Long id);

    //搜索
    R searchActivity(ActivityParams activityParams);

    //导出
    void exportActivity(HttpServletResponse response);

    //根据id获取活动图片并修改图片
    String getImageAndUpdateImage(ActivityOSSParams activityOSSParams);

    //获取活动列表
    R getList();

    //根据活动id查询活动和优惠券
    R getActivityAndVoucher(Long id);
}
